/**
 * Created by Administrator on 2017\9\21 0021.
 * pLatform MenuList
 */
import React from 'react';
import {Link} from 'react-router-dom';
import template from './../../commonui/template';
import {Menu,Icon} from 'antd';
const SubMenu = Menu.SubMenu;
const MenuItemGroup = Menu.ItemGroup;

class  MenuList extends React.Component{
    constructor(props){
        super(props);
        this.handleClick=this.handleClick.bind(this);
    }
     handleClick = (e) => {
        console.log('click ', e);
     }
    render(){
        return (
            <Menu
                onClick={this.handleClick}
                defaultSelectedKeys={['1']}
                defaultOpenKeys={['sub1','sub2','sub3']}
                mode="inline"
            >
                <SubMenu key="sub1" title={<span> User Management</span>}>
                    <Menu.Item key="1">Add/Edit admin</Menu.Item>
                    <Menu.Item key="2">BackUp/Import Data</Menu.Item>
                </SubMenu>
                <SubMenu key="sub2" title={<span>Heath Check Data Inquery</span>}>
                  <Menu.Item key="5">User Data Inquery</Menu.Item>
                </SubMenu>
                <SubMenu key="sub3" title={<span>Operation &&Maintenance Management</span>}>
                  <Menu.Item key="9">Handerware Monitor</Menu.Item>
                  <Menu.Item key="10">
                       <Link to={{pathname:"/InsMag"}}>Instituition Mangement</Link>
                  </Menu.Item>
                  <Menu.Item key="11">
                      <Link to={{pathname:"/BasicPkg"}}>Basic Package setting</Link>
                  </Menu.Item>
                  <Menu.Item key="12">Platform Statics</Menu.Item>
                </SubMenu>
            </Menu>
        )
    }
}

export default template({
    id: 'PltMenuList',
    component: MenuList
});
